require "pubenum"

--桌子的状态
ETableState = {
	TABLE_STATE_UNKNOW = 0,
	TABLE_STATE_WAIT_ALL_READY = 1,	-- 等待所有玩家准备
	TABLE_STATE_GAME_START = 2,		-- 游戏开始状态
	TABLE_STATE_WAIT = 3,			-- 非玩家操作中
	TABLE_STATE_CALL = 4,			-- 抢庄中
	TABLE_STATE_BET = 5,			-- 闲家下注中
	TABLE_STATE_ACTION = 5,			-- 玩家操作中
	TABLE_STATE_COMPARE = 6,		-- 比牌
	TABLE_STATE_GAME_OVER = 7,		-- 游戏结束
}

--座位状态
ESeatState = {
	SEAT_STATE_UNKNOW = 0,
	SEAT_STATE_NO_PLAYER = 1,  	-- 没有玩家
	SEAT_STATE_WAIT_READY = 2,  -- 等待玩家准备
	SEAT_STATE_WAIT_START = 3, 	-- 等待开局
	SEAT_STATE_STANDUP = 4,    	-- 站起
	SEAT_STATE_PLAYING = 5,   	-- 正在游戏中
	SEAT_STATE_WATCHING = 6, 	-- 中途进入的直接观战
}

ECardType = {
	CARD_TYPE_UNKNOW = 0,	-- 单牌
	CARD_TYPE_28 = 1,		-- 二八
	CARD_TYPE_PAIR = 2,		-- 对子
	CARD_TYPE_PAIR_10 = 3,	-- 对十
}

--房间类型
ERoomType = {
	ROOM_TYPE_UNKNOW = 0,
	ROOM_TYPE_DIAMOND = 1, 		-- 自建钻石
	ROOM_TYPE_COIN   = 3,		-- 金币桌
}

--游戏类型
EGameType = {
	GAME_TYPE_UNKNOW = 0,		-- 未知
	GAME_TYPE_SEECARD = 1, 		-- 看牌抢庄
	GAME_TYPE_FREE = 2,			-- 自由抢庄
}

--匹配场类型
EMatchType ={
    MATCH_TYPE_PRIMARY = 1,     -- 初级场
    MATCH_TYPE_MEDIUM = 2,      -- 中级场
    MATCH_TYPE_ADVANCE = 3,     -- 高级场
}

--奖池跑马灯提示颜色
LAMPCOLOR = {
    ORANGE = "<color=#00ff00>%s</c>",
    RED = "<color=#ff0000>%s</c>",
    YELLOW = "<color=#ffff00>%s</c>",
    BLUE = "<color=#0000ff>%s</c>",
    GOLD = "<color=#ffd700>%s</c>",
}

--游戏名
EGameName = "二八大杠"

--牌型名
CardTypeName = {
    [ECardType.CARD_TYPE_UNKNOW] = "高牌",
    [ECardType.CARD_TYPE_28] = "二八",
    [ECardType.CARD_TYPE_PAIR] = "对子",
    [ECardType.CARD_TYPE_PAIR_10] = "对十",
}